/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Simulation.Messages;

/**
 *
 * @author aking2
 */
public class MessageCommonConstants {
    
    public static final byte UNKNOWN_SERVICE    = 0;
    public static final byte SENSORS_SERVICE    = 1;
    public static final byte WEAPONS_SERVICE    = 2;
    public static final byte DYNAMICS_SERVICE   = 3;
    public static final byte BEHAVIOURS_SERVICE = 4;  
    public static final byte SYNC_SUB_SERVICE   = 5; // Make sure this is last
    public static final byte MAX_SERVICES_FOR_PERFORMANCE = 5;
    
    public static final byte SIM_STATE_UNDEFINED    = 0;
    public static final byte SIM_STATE_UNCONFUGURED = 1;
    public static final byte SIM_STATE_CONFUGURED   = 2;
    public static final byte SIM_STATE_SIMULATING   = 3;
    
    public static String StringForSimStatus( byte status) {
        String result;
        switch (status) {

            case SIM_STATE_UNCONFUGURED:
                result = "Unconfigured";
                break;            
            case SIM_STATE_CONFUGURED:
                result = "Configured";
                break;
            case SIM_STATE_SIMULATING:
                result = "Simulating";
                break; 
            default:
                result = "Unknown";
                break;                
        }
        return result;
    }    
}
